home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group94b.txt / 000049_icon-group-sender _Wed Sep 7 12:01:41 1994.msg < prev    next >
Internet Message Format  |  1995-02-09  |  1KB

  1. Received: by cheltenham.cs.arizona.edu; Wed, 7 Sep 1994 10:10:44 MST
  2. From: "Art Eschenlauer" <eschen@molbio.cbs.umn.edu>
  3. Message-Id: <9409071701.AA01120@molbio.cbs.umn.edu>
  4. Subject: What's wrong here.
  5. To: icon-group@cs.arizona.edu (icon-group@cs.arizona.edu)
  6. Date: Wed, 7 Sep 1994 12:01:41 -0500 (CDT)
  7. X-Mailer: ELM [version 2.4 PL23]
  8. Mime-Version: 1.0
  9. Content-Type: text/plain; charset=ISO-8859-1
  10. Content-Transfer-Encoding: 8bit
  11. Content-Length: 696       
  12. Errors-To: icon-group-errors@cs.arizona.edu
  13.  
  14. I'm finally trying do use the system call on a unix machine. As a test,
  15. I'm trying to list the directory into a file by calling 'ls > ls.file'
  16. from Icon. Here are the vital statistics; why am I not getting the
  17. system function to behave as expected?
  18.  
  19. Icon Interpreter Version 8.10.  May 4, 1993
  20. UNIX
  21. interpreted
  22. ASCII
  23. co-expressions
  24. direct execution
  25. environment variables
  26. error trace back
  27. external functions
  28. fixed regions
  29. keyboard functions
  30. large integers
  31. math functions
  32. multiple regions
  33. pipes
  34. string invocation
  35. system function
  36.  
  37. > cat test.icn
  38. procedure main()
  39.   system("ls > ls.file")
  40. end
  41.  
  42. > icont test
  43. Translating:
  44. test.icn:
  45.   main
  46. No errors
  47. Linking:
  48.  
  49. > test
  50.  
  51. > ls
  52. outline   test*     test.icn
  53.  
  54.